import React from 'react'
import { createBrowserRouter } from 'react-router-dom'
import MainLayout from '../layouts/MainLayout'
import NotFound from '../pages/NotFound'
import BootStart from '../pages/bootstart'
import Console from '../pages/console'
import ManageLayout from '../layouts/ManageLayout'

const router = createBrowserRouter([
  {
    path: '/',
    element: <MainLayout />,
    children: [
      {
        path: 'main_window',
        element: <ManageLayout />,
        children: [
          {
            path: 'list',
            element: <BootStart />,
          },
          {
            path: 'star',
            element: <Console />,
          },
        ],
      },
      {
        path: '*',
        element: <NotFound />,
      },
    ],
  },
])

export default router
